package com.fenghongzhang.day005test2.common;

import com.fenghongzhang.day005test2.entity.User;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface UserApi {

    @POST("/register")
    @FormUrlEncoded
    Observable<User> register(@Field("name") String name,@Field("password") String pwd);

}
